# -*- coding: utf-8 -*-
"""
Created on Mon Oct  7 18:29:25 2019

@author: XCL01
"""

target = int(input('给定的target   '))
matrix = [
        [1, 2, 7, 11, 15],
        [2, 5, 8, 12, 19],
        [3, 6, 9, 16, 22],
        [10, 13, 14, 17, 24],
        [18, 21, 23, 26, 30]
        ]
def exam():
    for i in range(len(matrix)):
        for j in range(len(matrix[i])):
            if target < matrix[i][0] or target > matrix[i][len(matrix[i]) - 1]:
                break
            elif target == matrix[i][j]:
                return 'ture'
    return 'false'
print(exam())